package com.group3.pojo.receive;

import com.group3.controller.Validated.MyEmail;
import com.group3.controller.Validated.Phone;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.Email;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("修改邮箱或电话入参")
public class UpadteTelOrEmail {

    @MyEmail
    @ApiModelProperty(value = "新邮箱",required = true)
    private String email;

    @Phone
    @ApiModelProperty(value = "新电话",required = true)
    private String tel;

}
